#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int Is_leap_year(int y)
{
	if (y % 400 == 0 || (y % 100 != 0) && (y % 4 == 0))
	{
		return 1;
	}
	return 0;
}

int main()
{
	int year;
	scanf("%d", &year);
	if (Is_leap_year(year))
	{
		printf("YES\n");
	}
	else
	{
		printf("NO\n");
	}
	return 0;
}